package com.zabra.zl.ui.success;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.zabra.zl.MainActivity;
import com.zabra.zl.R;
import com.zabra.zl.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class RechargeSuccessActivity extends BaseActivity {

    @BindView(R.id.back)
    LinearLayout back;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_allocation)
    TextView tvAllocation;

    @Override
    public int getLayoutId() {
        return R.layout.activity_recharge_success;
    }

    @Override
    public void initView() {
        tvTitle.setText("");
    }

    @OnClick({R.id.back, R.id.tv_allocation})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back:
                toClass_EmptyTop(this, MainActivity.class);
                break;
            case R.id.tv_allocation:
                toClass_EmptyTop(this, MainActivity.class);
                break;
        }
    }
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            toClass_EmptyTop(this, MainActivity.class);
        }
        return true;
    }
}
